package com.migu.contacts.main.my.setting;

import android.view.View;

import com.frank.libandroid.BaseActivity;
import com.frank.libandroid.CenterPopup;
import com.frank.libandroid.butterknife.OnClick;
import com.lxj.xpopup.XPopup;
import com.migu.contacts.R;
import com.migu.contacts.databinding.ActivityAccountBinding;
import com.migu.contacts.databinding.PopModifyPhoneBinding;
import com.migu.contacts.main.my.setting.account.SettingModifyPasswordActivity;
import com.migu.contacts.main.my.setting.account.SettingModifyPhoneActivity;

public class AccountActivity extends BaseActivity<ActivityAccountBinding> {

    public void modifyPhone(View view) {
        CenterPopup bottomPopup = new CenterPopup<PopModifyPhoneBinding>(mActivity) {


            @OnClick(R.id.dismiss)
            public void quit() {
                dismiss();
            }

            @OnClick(R.id.confirm)
            public void confirm() {
                start(SettingModifyPhoneActivity.class);
                dismiss();
            }
        };
        new XPopup.Builder(mActivity).asCustom(bottomPopup).show();
    }

    public void modifyPassword(View view) {
        start(SettingModifyPasswordActivity.class);
    }
}